import React from 'react'

export default function RfhkZj() {
  let myRef = React.useRef()
  function show(){
    console.log(myRef.current.value)
  }
  return (
    <div>
      <input type="text" ref={myRef} /><br></br>
      <button onClick={show}>获取</button>
    </div>
  )
}
